package com.diaohw.platform.remote.metadata.obj.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@NoArgsConstructor
@Schema(description = "参数信息")
public class ParamBO {

    @Schema(description = "元数据ID")
    private String metaId;

    @Schema(description = "最终记录额ID")
    private String dataId;

    @Schema(description = "是否为分组数据")
    private Boolean group;

    @Schema(description = "记录")
    private Map<String, Object> value;

   
    public static ParamBO of(String dataId, String metaId, Boolean group, Map<String, Object> value) {


        ParamBO paramBO = new ParamBO();
        paramBO.metaId = metaId;
        paramBO.group = group;
        paramBO.value = value;
        paramBO.dataId = dataId;
        return paramBO;
    }
}
